package com.wuxuan.javabase_homework.homework3;

/**
 * 用户/商户类
 */
public class People {
    private static int count;
    private int id;
    private String name;
    private double balance;


    public People() {
        this.id = ++count;
    }

    public People(String name) {
        this.id = ++count;
        this.name = name;
    }

    public static int getCount() {
        return count;
    }

    public static void setCount(int count) {
        People.count = count;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", balance=" + balance +
                '}';
    }
}
